'use strict';

import React, { Component } from 'react';

import './Toast.scss';

export default class Toast extends Component {
	render(){
		let { message,show } = this.props;
		
		if(!message){
			return null;
		}

		return (
			<div className={'ymt-toast '+(show?' show':'')}
				 show = { show }>
				{ message }
			</div>
		);
	}
}
